package com.weighing.system.mapper.server;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.weighing.system.domain.server.ProduceOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单主表 Mapper
 */
@Mapper
public interface ProduceOrderMapper extends BaseMapper<ProduceOrder> {

    /**
     * 查询所有工单（含明细）
     */
    List<ProduceOrder> selectAllWithDetails();

    /**
     * 按工单号查询（含明细）
     */
    ProduceOrder selectByBillNo(@Param("billNo") String billNo);
}
